import QtQuick 1.0
import Qt 4.7
import QtMultimediaKit 1.1

Item {
    id: container

    property bool disabled: false
    signal clicked
    property string imagesource

    // Suitable default size

    Image {
        id: buttonImage
        source: container.imagesource
    }
    SoundEffect {
        id: soundBtn
        source: "sound/button.WAV"
    }
    MouseArea {
        id: mouseArea
        anchors.fill: parent
        onClicked: {
        container.clicked()
        if(!mainWidget.getSoundMute()){
              soundBtn.play();
        }
        }
    }
}
